package cn.ycms.jdbc.support;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;

import cn.ycms.jdbc.RowMapper;



public class KeyAndValueMapper implements RowMapper<Map<String, String>> {

	public Map<String, String> mapper(ResultSet rs) throws SQLException {
		Map<String, String> data = new HashMap<String, String>();
		while (rs.next()) {
			data.put(rs.getString("PARAMETER"), rs.getString("PARAMETERVALUE"));
		}
		return data;
	}

}
